<?php /* Smarty version 2.6.18, created on 2009-04-15 19:19:55
         compiled from test.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'test.htm', 36, false),)), $this); ?>
<html>
<head>
<script>
function audio(c){
    var a;
	if(c!=""){
		a='<a href="javascript:return false;" onClick="ssplay(\''+c+'\');return false;" onMouseOver="ssplay(\''+c+'\')" onMouseOut="ssstop()"><img src="templates/images/audio.gif" border="0"></a>';
	}
	return a;
}
function getFlashMovieObject(movieName){
	if (window.document[movieName]){
		return window.document[movieName];
	}
	if(navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName];
	}
	else{
		return document.getElementById(movieName);
	}
}
function ssplay(c){
	var recite = getFlashMovieObject("recite");
	if(recite){
		recite.SetVariable("audio",c);
		recite.GotoFrame(1);
	}
}
function ssstop(){
	var recite = getFlashMovieObject("recite");
	if(recite){
		recite.GotoFrame(3);
	}
}
document.write(audio('<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('action' => 'audio'), $this);?>
'));
/* function play(id){ */
/*     var player = document.getElementById('player'); */
/*     player.setAttribute('data','/vvdict/index.php?controller=study&action=audio&id='+id); */
/*     player.Play(); */
/* }; */
/* function stop(){ */
/*     document.getElementById('player').Stop(); */
/* }; */
</script>
</head>
<body>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1" height="1" id="recite" align="absmiddle"> 
    <param name="allowScriptAccess" value="always" /> 
    <param name="movie" value="templates/images/dict.swf" />
    <param name="quality" value="high" />
    <embed src="templates/images/dict.swf" quality="high" width="1" height="1" name="recite" align="absmiddle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 
    </object>
    <object id="player" type="audio/mp3" data="" width="0" height="0">
      <param name="src" value="" />
      <param name="autostart" value="true" />
      <param name="controller" value="false" />
    </object>
    <!-- <div id="content"> -->
    <!-- <?php $_from = $this->_tpl_vars['sentences']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['listitem']):
?> -->
    <!--     <div class="voice"> -->
    <!--         <ul> -->
    <!--             <li><span>id:<?php echo $this->_tpl_vars['listitem']['id']; ?>
</span><span>word:<?php echo $this->_tpl_vars['listitem']['Word']; ?>
</span><span>number:<?php echo $this->_tpl_vars['listitem']['No']; ?>
</span></li> -->
    <!--             <li> -->
    <!--             <li><?php echo $this->_tpl_vars['listitem']['En_Sen']; ?>
<a href="javascript:return false;"onclick="play(<?php echo $this->_tpl_vars['listitem']['id_voice']; ?>
);stop();" onmouseover="play(<?php echo $this->_tpl_vars['listitem']['id_voice']; ?>
);stop();" onmouseout="stop();"><img src="templates/images/audio.gif" border=0></a><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'edit','action' => 'editvoice','id' => $this->_tpl_vars['listitem']['id_voice']), $this);?>
" target="_blank" >编辑声音</a></li> -->
    <!--             <li><?php echo $this->_tpl_vars['listitem']['Chi_Sen']; ?>
</li> -->
    <!--             <li><a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'edit','action' => 'editsentence','id' => $this->_tpl_vars['listitem']['id']), $this);?>
" target="_blank" >编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'edit','action' => 'deletesentence'), $this);?>
 id=$listitem.id">删除</a></li> -->
    <!--         </ul> -->
    <!--     </div> -->
    <!-- <?php endforeach; endif; unset($_from); ?> -->
    <!-- </div> -->

</body>
<html>